package com.sparrow.common.ai.behaviortree.node.impl;

import com.sparrow.common.ai.behaviortree.node.AbstractBehaviorNode;
import com.sparrow.common.ai.behaviortree.node.BehaviorNode;
import com.sparrow.common.ai.behaviortree.task.BehaviorTask;
import com.sparrow.common.ai.behaviortree.task.impl.SelectorTask;

import java.util.List;


public class SelectorNode extends AbstractBehaviorNode {
    private List<BehaviorNode> children;

    public SelectorNode(List<BehaviorNode> children) {
        this.children = children;
    }

    @Override
    public BehaviorTask createTask() {
        return new SelectorTask(this);
    }

    @Override
    public List<BehaviorNode> getChildren() {
        return children;
    }
}
